package club.ruanx.auth.provider;

import club.ruanx.security.provider.AuthorizeConfigProvider;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configurers.ExpressionUrlAuthorizationConfigurer;
import org.springframework.stereotype.Component;

/**
 * 验证码权限配置类
 *
 * @author 阮胜
 * @date 2018/9/30 16:14
 */
@Component
public class ValidateCodeAuthorizeConfigProvider implements AuthorizeConfigProvider {
    @Override
    public void configure(ExpressionUrlAuthorizationConfigurer<HttpSecurity>.ExpressionInterceptUrlRegistry config) {
        config.antMatchers("/validate/**").permitAll();
    }
}
